package cn.doourbest.learnspring.service.impl;

import cn.doourbest.learnspring.validator.NotEmptyBlank;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @description:
 * @author: zhangsc
 * @create: 2019/11/20
 */
public class ServiceBO {

    @NotEmptyBlank(message = "asdfadsfasd")
    private String name;

    @NotNull(message = "asdf")
    private Long age;

    @NotEmpty(message = "asdfasd")
    private List<String> nns;

    @NotEmpty(message = "bunengweikong")
    private String gg;


    public Long getAge() {
        return age;
    }

    public void setAge(Long age) {
        this.age = age;
    }

    public List<String> getNns() {
        return nns;
    }

    public void setNns(List<String> nns) {
        this.nns = nns;
    }

    public String getGg() {
        return gg;
    }

    public void setGg(String gg) {
        this.gg = gg;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
